package com.foreveross.fetl.core.domain.task;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.dayatang.domain.InstanceFactory;
import com.foreveross.fetl.common.domain.BaseOracleEntity;
import com.foreveross.fetl.core.domain.task.repository.UserCareLineEntityRepository;

@javax.persistence.Entity
@Table(name = "USER_CARE_LINE")
public class UserCareLineEntity extends BaseOracleEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7634556039492389126L;
	
	@Id
	private Long id;

	//用户名
	@Column(name = "USERNAME")
	private String username;
	
	//出发城市
	@Column(name = "DEPARTCITY")
	private String departcity;
	
	@Column(name = "DEPARTCITYCODE")
	private String departCityCode;
	
	@Column(name = "ARRIVALCITYCODE")
	private String arrivalCityCode;
	
	//到达城市
	@Column(name = "ARRIVALCITY")
	private String arrivalcity;
	
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDepartcity() {
		return departcity;
	}

	public void setDepartcity(String departcity) {
		this.departcity = departcity;
	}

	public String getArrivalcity() {
		return arrivalcity;
	}

	public void setArrivalcity(String arrivalcity) {
		this.arrivalcity = arrivalcity;
	}

	
	public String getDepartCityCode() {
		return departCityCode;
	}

	public void setDepartCityCode(String departCityCode) {
		this.departCityCode = departCityCode;
	}

	public String getArrivalCityCode() {
		return arrivalCityCode;
	}

	public void setArrivalCityCode(String arrivalCityCode) {
		this.arrivalCityCode = arrivalCityCode;
	}

	public UserCareLineEntityRepository getUserCareLineEntityRepository(){
		return InstanceFactory.getInstance(UserCareLineEntityRepository.class);
	}
	
	public List<UserCareLineEntity> findAll(){
		return getUserCareLineEntityRepository().findAll();
	}
	
	public List<UserCareLineEntity> findUserCareLines(){
		return getUserCareLineEntityRepository().findUserCareLines();
	}
}
